﻿namespace Raven
{
    public class GoalWander : Goal<RavenBot>
    {
        public GoalWander(RavenBot owner) : base(owner, GoalType.goal_wander)
        {
        }

        public override void Activate()
        {
            _owner.GetSteering().WanderOn();
            _status = GoalStatus.active;
        }

        public override GoalStatus Process()
        {
            ActivateIfInactive();
            return _status;
        }

        public override void Terminate()
        {
            _owner.GetSteering().WanderOff();
        }
    }
}